from django.urls import path

from . import views, views2

urlpatterns = [

    # 单表实例
    path('add_book/', views.add_book, name='add'),  # http://127.0.0.1:8000/app01/add_book/
    path('find_book/', views.find_book, name='find'),
    path('del_book/', views.del_book, name='del'),
    path('upd_book/', views.upd_book, name='upd'),

    # 多表实例
    path('add_book2/', views2.add_book, name='add2'),
    path('add_book_author/', views2.add_book_author, name='add_book_author'),
    path('find_book2/', views2.find_book, name='find2'),
    path('del_book2/', views2.del_book, name='del2'),
    path('upd_book2/', views2.upd_book, name='upd2'),

]
